// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addNote POST /api/note/add */
export async function addNoteUsingPost(
  body: API.LearningNoteAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/note/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteLearningNote POST /api/note/delete */
export async function deleteLearningNoteUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/note/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getLearningNoteById GET /api/note/get */
export async function getLearningNoteByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getLearningNoteByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLearningNote_>('/api/note/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getLearningNoteVOById GET /api/note/get/vo */
export async function getLearningNoteVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getLearningNoteVOByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLearningNoteVO_>('/api/note/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listLearningNoteVOByPage POST /api/note/list/page/vo */
export async function listLearningNoteVoByPageUsingPost(
  body: API.LearningNoteQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageLearningNoteVO_>('/api/note/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listLearningNoteVOByPageUser POST /api/note/list/page/vo/user */
export async function listLearningNoteVoByPageUserUsingPost(
  body: API.LearningNoteQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageLearningNoteVO_>('/api/note/list/page/vo/user', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateLearningNote POST /api/note/update */
export async function updateLearningNoteUsingPost(
  body: API.LearningNoteUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/note/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
